import Vue from 'vue'
import Vuex from 'vuex'
import App from './App'
import router from './router'
import store from './store/index'
import '@/permission'
import MuseUI from 'muse-ui'
import Loading from 'muse-ui-loading'
import Toast from 'muse-ui-toast'
import 'muse-ui/dist/muse-ui.css'
import 'muse-ui-loading/dist/muse-ui-loading.css'

Vue.use(MuseUI)
Vue.use(Vuex)
Vue.use(Loading, { overlayColor: "rgba(0, 0, 0, 0)", color: "#e34a42" })
Vue.use(Toast, {
    position: 'top', // 弹出的位置
    time: 2000, // 显示的时长
    closeIcon: 'close', // 关闭的图标
    close: true, // 是否显示关闭按钮
    successIcon: 'check_circle', // 成功信息图标
    infoIcon: 'info', // 信息信息图标
    warningIcon: 'priority_high', // 提醒信息图标
    errorIcon: 'warning' // 错误信息图标
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app-box')
